import React, { Component } from "react";
import NavBar from "./NavBar/NavBar";
import NavBar2 from "./NavBar/NavBar2";

export class App extends Component {
  render() {
    return(
      <div>
        <NavBar>
          <button>按钮</button>
          <h2>标题</h2>
          <i>斜体文字</i>
        </NavBar>
        <NavBar2 
          leftSlot={<button>按钮</button>}
          centerSlot={222}
          rightSlot={333}
        />
      </div>
    )
  }
}

export default App;
